# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_pkgname=django-sorted-m2m
pkgname="py3-$_pkgname"
pkgver=2.0.0
pkgrel=3
pkgdesc="Drop-in replacement for django’s own ManyToManyField"
url="https://github.com/Ponytech/django-sorted-m2m"
arch="noarch"
license="BSD-3-Clause"
depends="py3-django"
makedepends="py3-setuptools_scm"
checkdepends="py3-django-utils-six"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # requires py3-django-utils-six

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
94052a7c8dbcff5510225add396f1f5130d4cb22364ae90183f331a2f0e91bf303f9209f8a9dc5163c733e7fc181405c9dee52ffe416a1fd3f161e26151e6a48  django-sorted-m2m-2.0.0.tar.gz
"
